.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.login-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.login-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
}

.login-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.login-card .ant-card-body {
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-title {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 8px !important;
  font-size: 28px;
}

.login-subtitle {
  color: #6b7280;
  font-size: 14px;
}

.login-form {
  margin-top: 30px;
}

.login-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #fca5a5;
  font-size: 14px;
}

.login-input {
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.3s ease;
  height: 48px;
}

.login-input:hover {
  border-color: #667eea;
}

.login-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
  color: #9ca3af;
  margin-right: 8px;
}

.login-button {
  height: 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4199 100%);
}

.login-button:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 30px;
  text-align: center;
}

.login-tip {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  color: #9ca3af;
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
}

.feature-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

.login-copyright {
  text-align: center;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-content {
    padding: 16px;
  }
  
  .login-card .ant-card-body {
    padding: 30px 24px;
  }
  
  .login-logo {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-input {
    height: 44px;
  }
  
  .login-button {
    height: 44px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .login-card {
    background: rgba(31, 41, 55, 0.95);
  }
  
  .login-title {
    color: #f9fafb;
  }
  
  .login-subtitle {
    color: #d1d5db;
  }
  
  .login-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .login-input::placeholder {
    color: #9ca3af;
  }
  
  .login-tip {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
  }
  
  .feature-item {
    color: #d1d5db;
  }
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: slideInUp 0.6s ease-out;
}

.login-form .ant-form-item {
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.login-form .ant-form-item:nth-child(2) {
  animation-delay: 0.3s;
}

.login-form .ant-form-item:nth-child(3) {
  animation-delay: 0.4s;
}

/* 加载状态样式 */
.login-button.ant-btn-loading {
  opacity: 0.8;
  transform: none;
}

/* 分割线样式 */
.ant-divider {
  border-color: #e5e7eb !important;
  margin: 24px 0 !important;
}

/* 密码输入框图标样式 */
.ant-input-password .ant-input {
  border: none !important;
  box-shadow: none !important;
}

.ant-input-password {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.ant-input-password:hover {
  border-color: #667eea;
}

.ant-input-password:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}